package com.hksj.Intelligentmanagement.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;
import java.util.Date;

/**
 * 护士等级表
 * @author chenxingqing
 */
@Data
@FieldNameConstants
@TableName("sys_nurse_level")
@ApiModel(value="NurseLevel对象", description="护士等级表")
public class NurseLevelEntity extends Model<NurseLevelEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "等级id")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "等级名称")
    @TableField("level_name")
    private String levelName;

    @ApiModelProperty(value = "排序号")
    @TableField("sort_no")
    private Integer sortNo;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "状态(0:未禁用,1:已禁用)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "逻辑删除（0未删除 1已删除）")
    @TableField("del_flag")
    private Integer delFlag;

    @ApiModelProperty("人员类型  1 = 护士  2 = 麻醉")
    @TableField("type")
    private Integer type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
